package com.qcby.service;

import com.qcby.common.LessonPlan.ShowByPage;
import com.qcby.entity.LessonPlan;
import com.qcby.entity.Result;

import java.io.IOException;
import java.util.List;

public interface LessonPlanService {

    //分页展示教案信息
    Result<List<LessonPlan>> showLessonPlanByPage(ShowByPage pageInfo);

    //获取满足条件的教案数量
    Result<Integer> getLessonPlanCount(ShowByPage pageInfo);

    //添加教案信息
    Result<LessonPlan> addLessonPlan(LessonPlan info) throws Exception;

    //删除教案信息
    Result<Integer> deleteLessonPlan(int id);

    //展示教案详细信息
    Result<LessonPlan> showLessonPlanDetail(int id);

    //模糊查询教案信息
    Result<List<LessonPlan>> fuzzyQueryLessonPlanByPage(ShowByPage info);

    //模糊查找时获取满足条件的教案数量
    Result<Integer> getLessonPlanCountWhenSearch(ShowByPage info);

    Result getLessonPlanByTeacherName(Integer id);

}
